import axios from '@/libs/api.request'

export class CommercialPayableBillApi {
  // 商保应付账单导入
  static importCommercialPayableBill (params) {
    return axios.request({
      url: '/CommercialPayableBill/ImportCommercialPayableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取商保应付账单列表数据
  static getCommercialPayableBillList (params) {
    return axios.request({
      url: '/CommercialPayableBill/GetCommercialPayableBillList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出商保应付账单
  static exportCommercialPayableBill (params) {
    return axios.request({
      url: '/CommercialPayableBill/ExportCommercialPayableBill',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出实付单-U8
  static exportPayment (params) {
    return axios.request({
      url: '/CommercialPayableBill/ExportPayment',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除
  static delete (params) {
    return axios.request({
      url: '/CommercialPayableBill/Delete',
      method: 'delete',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 校验并获取当前工资总额
  static checkConfirmPay (params) {
    return axios.request({
      url: '/CommercialPayableBill/CheckConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 工资付款确认
  static confirmPay (params) {
    return axios.request({
      url: '/CommercialPayableBill/ConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
